/*
 * @Author: wrdoct llw18729357726@163.com
 * @Date: 2025-03-24 14:59:10
 * @LastEditors: wrdoct llw18729357726@163.com
 * @LastEditTime: 2025-03-24 15:13:00
 * @FilePath: /c-study/gtest_gmock/main.cpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include <iostream>
#include "gtest/gtest.h"

int add(int a, int b)
{
    return a + b;
}

TEST(testCase1, should_3_when_given_2_and_1)
{
    EXPECT_EQ(add(1, 2), 4);
}

int main()
{
    std::cout << "gtest_gmock" << std::endl;

    testing::InitGoogleTest();

    return RUN_ALL_TESTS();
}